#商品分类序列化器类
from rest_framework import serializers

from goods.models import GoodsCategory

#分类序列化器类
class CategorySimpleSerializer(serializers.ModelSerializer):
    class Meta:
        model=GoodsCategory
        fields=('id','name')